@layout("/common/_container.html",{js:["/assets/business/certification/certification_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">用户昵称</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${certificationResult.userName}
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">真实姓名</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${certificationResult.name}
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">身份证号</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${certificationResult.idCard}
                    </label>
                </div>
            </div>
            @if(certificationResult.mode == 0){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">银行卡号</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${certificationResult.cardNo}
                        </label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">手机号</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${certificationResult.phone}
                        </label>
                    </div>
                </div>
            @}
            @if(certificationResult.mode == 2){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">正面照</label>
                        <img layer-src="${certificationResult.frontSide}" src="${certificationResult.frontSide}"  width="200px" height="200px" style="margin: 3px; border: black 2px"  ;/>
                        <!--<img src="http://localhost:30113/system/previewImgage?fileId=${certificationResult.frontSide}">-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">反面照</label>
                        <img layer-src="${certificationResult.backSide}"  src="${certificationResult.backSide}"  width="200px" height="200px" style="margin: 3px; border: black 2px"  ;/>
                        <!--<img id="backSide" src="${certificationResult.backSide}" />-->
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">手持证件照</label>
                        <img layer-src="${certificationResult.handSide}" src="${certificationResult.handSide}"  width="200px" height="200px" style="margin: 3px; border: black 2px"  ;/>
                        <!--<img id="handSide" src="${certificationResult.handSide}"/>-->
                    </div>
                </div>
            @}

        </div>
    </div>


    <div class="layui-card">
        <div class="layui-card-body">
            <form id="certificationForm" lay-filter="certificationForm" class="layui-form" style="">
                <input id="certificationId" name="certificationId" type="hidden" value="${certificationResult.certificationId}">
                <input id="userId" name="userId" type="hidden" value="${certificationResult.userId}">
                <input id="name" name="name" type="hidden" value="${certificationResult.name}">
                @if(certificationResult.status ==  0){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">审核意见</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="description"></textarea>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align:center">
                        <!--<label class="layui-form-label">-->
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>通过</button>
                        <!--</label>-->
                        <!--<label class="layui-form-label">-->
                        <button class="layui-btn" lay-filter="btnFail" lay-submit>拒绝</button>
                        <!--</label>-->
                    </div>
                </div>
                @}

                @if(certificationResult.status > 0){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">审核意见</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${certificationResult.description}
                        </label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align:center">
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">返回</button>
                    </div>
                </div>
                @}


            </form>
        </div>
    </div>
</div>

@}